#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
 
include $(TOPDIR)/rules.mk
 
PECL_NAME:=swoole
PECL_LONGNAME:=Bindings for the libswoole library
 
PKG_VERSION:=6.0.2
PKG_RELEASE:=1
PKG_HASH:=ca9df27a4188f6670720ffaed9c4ecd6e832ea5aed55e554b63230f3147166ca
 
PKG_NAME:=php8_2_lede-pecl-$(PECL_NAME)
PKG_SOURCE:=$(PECL_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://pecl.php.net/get/

PKG_LICENSE:=Apache2.0
PKG_LICENSE_FILES:=LICENSE
PKG_BUILD_DEPENDS:=php8_2_lede
PKG_BUILD_DIR:=$(BUILD_DIR)/pecl-php8/$(PECL_NAME)-$(PKG_VERSION)
PKG_BUILD_PARALLEL:=1
 
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
include ../php8_2_lede/pecl.mk

 
# CONFIGURE_ARGS+= \
# 	--enable-openssl \
# 	--enable-http2 \
# 	--enable-sockets \
# 	--enable-debug \
# 	--enable-debug-log
 
$(eval $(call PHP8_2_LEDE_PECLPackage,$(PECL_NAME),$(PECL_LONGNAME),+libstdcpp,15))
$(eval $(call BuildPackage,$(PKG_NAME)))
